package com.platform.qujia.service;

import com.platform.qujia.pojo.CustomerElectronicCard;
import com.platform.qujia.pojo.CustomerElectronicDeputyCard;
import com.platform.qujia.pojo.vo.ExchangeCardVo;

import java.util.List;

public interface ElectronicDeputyCardService {

    // 查询会员所有副卡
    List<CustomerElectronicDeputyCard> selectElectronicDeputyCardList(CustomerElectronicDeputyCard customerElectronicDeputyCard);

    // 查询主卡下的所有副卡
    List<CustomerElectronicDeputyCard> selectElectronicDeputyCardByMainList(CustomerElectronicDeputyCard customerElectronicDeputyCard);

    // 新增副卡
    CustomerElectronicDeputyCard addElectronicDeputyCard(CustomerElectronicDeputyCard customerElectronicDeputyCard);

    // 查询副卡
    CustomerElectronicDeputyCard selectElectronicDeputyCardById(Long id);

    int updateCustomerElectronicCard(CustomerElectronicDeputyCard customerElectronicDeputyCard);

    // 删除副卡
    int deleteElectronicDeputyCard(Long id);

    // 回收副卡
    int recoveryElectronicDeputyCard(Long id);

    // 替换副卡支付
    ExchangeCardVo exchangeCard(ExchangeCardVo exchangeCardVo);
}
